package com.lxf.cn.user;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.*;


/**
 * Created by liaoxuefeng on 2018/12/6.
 */
@Configuration
public class WebAppConfigurer implements WebMvcConfigurer {


    @Override
    public void addInterceptors(InterceptorRegistry registry) {

        // web 登录拦截的管理器
//        InterceptorRegistration registration = registry.addInterceptor(new LoginInterceptor());     //拦截的对象会进入这个类中进行判断
//        registration.addPathPatterns("/**");                    //所有路径都被拦截
//
//        registration.excludePathPatterns("/api/**",  "/css/**" , "/login" , "/index" );       //添加不拦截路径


        // app 登陆拦截
       // InterceptorRegistration interceptorRegistration = registry.addInterceptor();


    }

}
